package Homework7;

import java.util.*;

public class Homework7_6_TestPerson {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String name = input.nextLine();
        int age = input.nextInt();
        Person p1 = new Person(name,age);
        Person p2 = (Person)p1.clone();
        System.out.println(p1);
        System.out.println(p2);
        System.out.println(p1 == p2);
        System.out.println(p1.equals(p2));
    }
}
